Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ready media #99

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Feature/ready media #99

merged 2 commits into from
Feb 29, 2024

Conversation

jgilfoil
Copy link
Owner

No description provided.

Copy link

--- HelmRelease: media/prowlarr Deployment: media/prowlarr

+++ HelmRelease: media/prowlarr Deployment: media/prowlarr

@@ -55,30 +55,18 @@

         - name: PROWLARR__THEME
           value: dark
         - name: TZ
           value: America/Denver
         image: ghcr.io/onedr0p/prowlarr-nightly:1.11.1.4146@sha256:d1df9f9528a64994a1d49fdad3f340fe76496777b496f1cbb0b71a718dbc4d88
         livenessProbe:
-          exec:
-            command:
-            - sh
-            - -c
-            - if [ "$(wget -q -O- http://localhost/ping | jq -r '.status')" = 'OK'
-              ]; then exit 0; else exit 1; fi
           failureThreshold: 3
           initialDelaySeconds: 0
           periodSeconds: 10
           timeoutSeconds: 1
         name: main
         readinessProbe:
-          exec:
-            command:
-            - sh
-            - -c
-            - if [ "$(wget -q -O- http://localhost/ping | jq -r '.status')" = 'OK'
-              ]; then exit 0; else exit 1; fi
           failureThreshold: 3
           initialDelaySeconds: 0
           periodSeconds: 10
           timeoutSeconds: 1
         resources:
           limits:

Copy link

--- kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

+++ kubernetes/apps/media/prowlarr/app Kustomization: flux-system/prowlarr HelmRelease: media/prowlarr

@@ -52,33 +52,41 @@

               repository: ghcr.io/onedr0p/prowlarr-nightly
               tag: 1.11.1.4146@sha256:d1df9f9528a64994a1d49fdad3f340fe76496777b496f1cbb0b71a718dbc4d88
             probes:
               liveness:
                 custom: true
                 enabled: true
-                spec:
-                  exec:
-                    command:
-                    - sh
-                    - -c
-                    - if [ "$(wget -q -O- http://localhost/ping | jq -r '.status')"
-                      = 'OK' ]; then exit 0; else exit 1; fi
+                exec:
+                  command:
+                  - sh
+                  - -c
+                  - |
+                    response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+                    if [ "$response" = "OK" ]; then
+                      exit 0
+                    else
+                      exit 1
+                    fi
                   failureThreshold: 3
                   initialDelaySeconds: 0
                   periodSeconds: 10
                   timeoutSeconds: 1
               readiness:
                 custom: true
                 enabled: true
-                spec:
-                  exec:
-                    command:
-                    - sh
-                    - -c
-                    - if [ "$(wget -q -O- http://localhost/ping | jq -r '.status')"
-                      = 'OK' ]; then exit 0; else exit 1; fi
+                exec:
+                  command:
+                  - sh
+                  - -c
+                  - |
+                    response=$(wget -q -O- http://localhost/ping | jq -r '.status')
+                    if [ "$response" = "OK" ]; then
+                      exit 0
+                    else
+                      exit 1
+                    fi
                   failureThreshold: 3
                   initialDelaySeconds: 0
                   periodSeconds: 10
                   timeoutSeconds: 1
               startup:
                 enabled: false

@jgilfoil jgilfoil merged commit 6b38655 into main Feb 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant